package com.ruoyi.spspublic.mapper;

import com.ruoyi.spspublic.domain.TKpiDataTemp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 2Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-06
 */
public interface TKpiDataTempMapper {
  /**
   * 查询2
   *
   * @param ctId 2ID
   * @return 2
   */
  public TKpiDataTemp selectTKpiDataTempById(String ctId);

  /**
   * 查询2列表
   *
   * @param tKpiDataTemp 2
   * @return 2集合
   */
  public List<TKpiDataTemp> selectTKpiDataTempList(TKpiDataTemp tKpiDataTemp);

  /**
   * 新增2
   *
   * @param tKpiDataTemp 2
   * @return 结果
   */
  public int insertTKpiDataTemp(TKpiDataTemp tKpiDataTemp);

  /**
   * 修改2
   *
   * @param tKpiDataTemp 2
   * @return 结果
   */
  public int updateTKpiDataTemp(TKpiDataTemp tKpiDataTemp);

  /**
   * 删除2
   *
   * @param ctId 2ID
   * @return 结果
   */
  public int deleteTKpiDataTempById(String ctId);

  /**
   * 批量删除2
   *
   * @param ctIds 需要删除的数据ID
   * @return 结果
   */
  public int deleteTKpiDataTempByIds(String[] ctIds);

  /**
   * 根据businessId删除数据
   *
   * @param businessId
   * @return
   */
  int deleteKpiDataByBusinessId(@Param("businessId") String businessId);
}
